<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>PROBOMANIA :QUIZ</title>

	
	<link type="text/css" href="./css/jquery.ibutton.css" rel="stylesheet" media="all" />

	<!---// load jQuery from the GoogleAPIs CDN //--->
	<script type="text/javascript" src="./lib/jquery.min.js"></script>
  <script type="text/javascript" src="./lib/jquery.ibutton.js"></script>
   

	<style type="text/css">
		h4, h5 {
			margin-bottom: 0;
		}
		
		.examples pre {
			margin-top: 0;
		}
		
		label.label {
			display: block;
			width: 200px;
			float: left;
			padding-top: 5px;
			font-weight: bold;
			height: 30px;
		}
		label.label1 {
			display: block;
			width: 300px;
			float: left;
			padding-top: 5px;
			font-weight: bold;
			height: 30px;
		}
		
		div.row {
			margin-top: 10px;
		}
		
		input.button {
			margin-top: 5px;
		}
		
		/* shows overwriting styles via CSS */
		#css .ibutton-container {
			width: 175px;
		}

		#css .ibutton-container .ibutton-handle {
			width: 5px;
		}
	</style>

<script type="text/javascript">
$(document).ready(function (){
  $(":radio").iButton({
    labelOn: "Right"
  , labelOff: ""
});
});
</script>
</head>

<body>
<?php session_start();
if (!isset($_SESSION['email'])){
echo "<script language=\"javascript\">location.href=\"index.php\";</script>";}
include("sql.php");
include("rand.php");
$aq=$_SESSION['aq'];
$query="select * from ques where qno=$aq";
$result=mysql_query($query);
	if (!mysql_query($query))
  {
  die('Error: ' . mysql_error());
  } 
	$row = mysql_fetch_array($result);
	?>
<label  class="label1" for="bla">a)Q<?php echo"$row[0] . $row[1] .?" ?></label><br>
<br><br><br>

<form id="form1" name="form1" method="post" action="verify.php">
<div id="radio" class="group">
  <div class="row">
    <label  class="label" for="ex07-1">a).<?php echo" $row[2] " ?> </label>
	 <input type="radio" name="ans" id="ex07-1" value="a"/> 
	
  </div>

  <div class="row">
    <label class="label" for="ex07-2">b).<?php echo" $row[3] " ?>  </label>
    <input type="radio" name="ans" id="ex07-2"  value="b"/>
  </div>

  <div class="row">
    <label class="label" for="ex07-3"> c).<?php echo" $row[4] " ?>  </label>
    <input type="radio" name="ans" id="ex07-3" value="c"/>
  </div>
  <div class="row">
    <label class="label" for="ex07-4"> d).<?php echo" $row[5] " ?>  </label>
    <input type="radio" name="ans" id="ex07-4" value="d"/>
  </div>
</div>

<input name="submit" type="submit" value="submit" />
</form>



</body>
</html>
